-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
applications: nrf_desktop: generic max report size handling #19691
base: main
Are you sure you want to change the base?
Conversation
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 32a2ebb7c7f9b1040a5af9c4b49035317a7aada4 more detailssdk-nrf:
Github labels
List of changed files detected by CI (1)
Outputs:ToolchainVersion: b77d8c1312 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
You can find the documentation preview for this PR at this link. It will be updated about 10 minutes after the documentation build succeeds. Note: This comment is automatically posted by the Documentation Publish GitHub Action. |
applications/nrf_desktop/configuration/common/hid_report_desc.h
Outdated
Show resolved
Hide resolved
#define _REPORT_BUFFER_SIZE_KEYBOARD_LEDS \ | ||
(IS_ENABLED(CONFIG_DESKTOP_HID_REPORT_KEYBOARD_SUPPORT) ? (REPORT_SIZE_KEYBOARD_LEDS) : (0)) | ||
union _input_report_size_max { | ||
#if CONFIG_DESKTOP_HID_REPORT_MOUSE_SUPPORT || CONFIG_DESKTOP_HID_REPORT_BOOT_INTERFACE_MOUSE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we only use CONFIG_DESKTOP_HID_REPORT_MOUSE_SUPPORT
here? (boot mouse report is handled as a separate case)
Similar for keyboard input report.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the hid_state is using the same report data for both boot and normal variants. This is why I used this setup - it makes sure that code always works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This implementation limitation is already handled by Kconfig dependency: https://github.com/nrfconnect/sdk-nrf/blob/main/applications/nrf_desktop/Kconfig.hid#L169-L175. I think we could simplify here then.
applications/nrf_desktop/configuration/common/hid_report_desc.h
Outdated
Show resolved
Hide resolved
applications/nrf_desktop/configuration/common/hid_report_desc.h
Outdated
Show resolved
Hide resolved
059a2ed
to
d99fda6
Compare
Handle max input and output report size in scalable way. Signed-off-by: Pawel Dunaj <[email protected]>
d99fda6
to
32a2ebb
Compare
rebased |
Handle max input and output report size in scalable way.